package com.briup.searchengine.view.dao;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.client.Connection;
import org.apache.hadoop.hbase.client.ConnectionFactory;

import java.io.IOException;

public class DBUtil {

    public static Connection conn = null;
    static {
       if (conn==null){
           Configuration conf = HBaseConfiguration.create();
           try {
               conn =  ConnectionFactory.
                       createConnection(conf);
           } catch (IOException e) {
               e.printStackTrace();
           }
       }
    }

}
